package com.letoken.platform.repo.ecommerce.dto;

import com.letoken.platform.repo.ecommerce.po.EcommerceProductSku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "新商家修改商品请求对象", description = "新商家修改商品请求对象")
public class ShopProductEditReq implements Serializable {
    @ApiModelProperty(value = "商品ID")
    @NotNull(message = "80500002")
    private Integer id;


    @ApiModelProperty(value = "商品标题")
    private String title;

    @ApiModelProperty(value = "副标题")
    private String assistantTitle;



    @ApiModelProperty(value = "产品类别(二级分类ID)")
    private Integer categoryId;



    @ApiModelProperty(value = "商品标签 逗号分割")
    private String tags;

    @ApiModelProperty(value = "上架状态：0->下架；1->上架")
    private Integer publishStatus;


    @ApiModelProperty(value = "主图图片，限制6张，已逗号分隔")
    private String albumPics;


//    @ApiModelProperty(value = "是否免运费 1是 2否")
//    private Integer freeShipping;
//
//    @ApiModelProperty(value = "运费")
//    private BigDecimal shipping;

    @ApiModelProperty(value = "模板ID")
    private Integer templateId;

    @ApiModelProperty(value = "图文详情描述")
    private String graphicDetails;


    @NotNull
    @ApiModelProperty(value = "sku组合记录")
    private List<ShopAddSkuReq> skus;


    @ApiModelProperty(hidden = true)
    private List<EcommerceProductSku> nSkus;



    @ApiModelProperty(value = "让利值")
    private BigDecimal contributing;







}
